import request from '@/utils/request'

// 查询接待管理列表
export function listReceive(query) {
  return request({
    url: '/official/receive/list',
    method: 'get',
    params: query
  })
}

// 查询接待管理详细
export function getReceive(id) {
  return request({
    url: '/official/receive/' + id,
    method: 'get'
  })
}

// 新增接待管理
export function addReceive(data) {
  return request({
    url: '/official/receive',
    method: 'post',
    data: data
  })
}

// 修改接待管理
export function updateReceive(data) {
  return request({
    url: '/official/receive',
    method: 'put',
    data: data
  })
}

// 删除接待管理
export function delReceive(id) {
  return request({
    url: '/official/receive/' + id,
    method: 'delete'
  })
}
